package com.liukunup.start.controller;

import com.liukunup.start.bean.ApiResult;
import com.liukunup.start.service.ISystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * System Controller
 * @author Liu Kun
 * @date 2021-04-06 00:25:07
 **/
@RestController
public class SystemController {

    @Autowired
    ISystemService systemService;

    @GetMapping(path = {"/ver", "/version"})
    public @ResponseBody
    ApiResult getVersion() {
        return systemService.getVersion();
    }
}
